package com.ruoyi.finance.rules.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 数字直播推广记录表
 * </p>
 *
 * @author wangmh
 * @since 2023-09-21
 */
@TableName("sz_promotion_tree")
@ApiModel(value = "SzPromotionTree对象", description = "数字直播推广记录表")
public class SzPromotionTree implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId("id")
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("推荐者id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("推广时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("邀请用户")
    @TableField(exist = false)
    private List<SzPromotionTree> children;

    @ApiModelProperty("用户昵称")
    @TableField(exist = false)
    private String nickName;

    @ApiModelProperty("手机号")
    @TableField(exist = false)
    private String phone;

    @ApiModelProperty("代理等级")
    @TableField(exist = false)
    private String vipName;

    @ApiModelProperty("充值金额")
    @TableField(exist = false)
    private BigDecimal money;

    @ApiModelProperty("下级总充值金额")
    @TableField(exist = false)
    private BigDecimal moneySum;


    public String getVipName() {
        return vipName;
    }

    public void setVipName(String vipName) {
        this.vipName = vipName;
    }

    public BigDecimal getMoneySum() {
        return moneySum;
    }

    public void setMoneySum(BigDecimal moneySum) {
        this.moneySum = moneySum;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public List<SzPromotionTree> getChildren() {
        return children;
    }

    public void setChildren(List<SzPromotionTree> children) {
        this.children = children;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }



    @Override
    public String toString() {
        return "SzPromotionTree{" +
            "id=" + id +
            ", userId=" + userId +
            ", parentId=" + parentId +
            ", createTime=" + createTime +
        "}";
    }
}
